package models

import "gorm.io/gorm"

type Pet struct {
	gorm.Model
	Name     string `gorm:"type:varchar(30); not null" json:"name"`
	Sex      string `gorm:"type:enum('男','女'); not null" json:"sex"`
	Context  string `gorm:"type:varchar(30); not null" json:"context"`
	StyleId  int    `gorm:"type:int(11)" json:"style_id"`
	PersonId int    `gorm:"type:int(11)" json:"person_id"`
}
type Style struct {
	gorm.Model
	Name string `gorm:"type:varchar(50)" json:"name"`
}
type Person struct {
	gorm.Model
	Name string `gorm:"type:varchar(50)" json:"name"`
}
type PetData struct {
	Pet
	StyleName  string
	PersonName string
}
